﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace MyControls
{
    /// <summary>
    ///MyControl 的摘要说明
    /// </summary>
    public class MyControl : WebControl
    {
        private string _Text = string.Empty;

        public string Text
        {
            get { return _Text; }
            set { this._Text = value; }
        }

        protected override void RenderContents(HtmlTextWriter writer)
        {
            writer.RenderBeginTag(HtmlTextWriterTag.Div);
            writer.Write("Content:");
            writer.RenderEndTag();
            writer.Write(_Text);
        }

    }
}
